package org.example.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name="cloud-study-email",
        fallback = EmailFeignClientFallBack.class,path = "/email")
public interface EmailFeignClient {

    @RequestMapping("/{email}/{code}")
    Boolean send(@PathVariable(value = "email") String email, @PathVariable(value = "code") String code);

}
